package com.iheima.branch;

public class while1 {
    public static void main(String[] args) {
        main2();
    }
    public static void main1() {
        double ben=10000;
        int i=0;
        while(ben<20000.0){
            ben+=ben*0.017;
            i++;
        }
        System.out.println(i);
    }
    public static void main2() {
        double zhu=8848860.0;
        double zhi=0.1;
        int i=0;
        while(zhi<zhu){
            zhi*=2;
            i++;
        }
        System.out.println(i);
    }

}
